//=============================================================================
#ifndef _CLIGHT_H_
    #define _CLIGHT_H_

#include "Define.h"
#include "CTexture.h"

#include <gl/gl.h>
#include <vector>

//=============================================================================

class CLight {
    public:
        static std::vector<CLight>  LightList;

    private:
        CTexture        Tex_Light;

        int             X;
        int             Y;

        float           R;
        float           G;
        float           B;
        float           Alpha;

    public:
        CLight();

    public:
        bool OnLoad(char* File, int X, int Y);

        void OnRender();

    public:
        void SetColor(float R, float G, float B, float Alpha);

    public:
        static void AddLight(char* File, int X, int Y);
};

//=============================================================================

#endif

